<?php

session_start();
require __DIR__ . '/../vendor/autoload.php';

require '../helpers.php';


use Framework\Router;
use Framework\Session;

Session::start();

$router = new Router();

$routes = require basePath('routes.php');

// 获得当前的请求uri(解析路径)
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

$router->route($uri);




